package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.FullReductionMapper;
import com.richest.api.service.IFullReductionService;
import com.richest.bean.FullReductionBean;

/**
 * 企业满减信息管理服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class FullReductionServiceImpl implements IFullReductionService {

	@Autowired
	private FullReductionMapper mapper;

	@Override
	public Integer fullReductionAdd(FullReductionBean bean) {
		return mapper.fullReductionAdd(bean);
	}

	@Override
	public Integer fullReductionUpdate(FullReductionBean bean) {
		return mapper.fullReductionUpdate(bean);
	}

	@Override
	public Integer fullReductionDelete(Long id) {
		return mapper.fullReductionDelete(id);
	}

	@Override
	public FullReductionBean fullReductionSelectOne(Long id) {
		return mapper.fullReductionSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> fullReductionSelectMap(Map<String, Object> params) {
		return mapper.fullReductionSelectMap(params);
	}
}
